package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.dao.impl.player.UserGoodsFirstGetDataDaoImpl;
import com.yanqu.road.entity.player.GoodsFirstGetTimeData;
import com.yanqu.road.entity.player.GoodsResourData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class UserGoodsResourceBusiness {
    public static Map<Integer, GoodsResourData> getGoodsResourData(long userId) {
        return DaoHelper.getUserGoodsResourceDaoImpl().getGoodsResourData(userId);
    }

    public static boolean addGoodsResourData(GoodsResourData data) {
        return DaoHelper.getUserGoodsResourceDaoImpl().add(data);
    }

    public static boolean updateGoodsResourData(GoodsResourData data) {
        return DaoHelper.getUserGoodsResourceDaoImpl().update(data);
    }

    public static Map<Integer, GoodsFirstGetTimeData> getGoodsFirstGetData(long userId){
        return new UserGoodsFirstGetDataDaoImpl().getGoodsResourData(userId);
    }

    public static boolean addGoodsFirstGetData(GoodsFirstGetTimeData data) {
        return new UserGoodsFirstGetDataDaoImpl().add(data);
    }
}
